<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        body {
            perspective: 900px;
        }

        ul {
            width: 500px;
            height: 400px;
            margin:100px auto;
        }


        .teat {
            height: 200px;
            width: 200px;
            position: relative;
            transform-style: preserve-3d;
        }

        .front,
        .bottom {
            position: absolute;
            top: 0;
            left: 0;
            height: 200px;
            width: 200px;
        }

        .bottom {
            background-color: rgb(167, 82, 49);
            transform: translateY(100px) rotateX(-90deg);
        }

        .front {
            background-color: rgb(45, 193, 204);
            transform: translateZ(100px);

        }



        .teat:hover {
            transform: rotateX(90deg);
            transition: all 1s;
        }
    </style>
</head>

<body>
    <ul class="box">

        <div class="teat">
            <div class="front">hhh</div>
            <div class="bottom">jjj</div>
        </div>

    </ul>
</body>

</html>